C99-ism sneaked in.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 22 Jan 2006 18:04:16 +0000 (18:04 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 22 Jan 2006 18:04:16 +0000 (18:04 +0000)
gpsbabel/csv_util.c

index ba3b55a832a1adb3f7aa8cbaa2c33240128bcddb..a2ef893463a80248cd53fa2daab2ddc2e92adf0a 100644 (file)
@@ -1103,10 +1103,11 @@ xcsv_waypt_pr(const waypoint *wpt)
     i = 0;
     QUEUE_FOR_EACH(xcsv_file.ofield, elem, tmp) {
        char *obuff;
-        fmp = (field_map_t *) elem;
        double lat = wpt->latitude;
        double lon = wpt->longitude;
 
+        fmp = (field_map_t *) elem;
+
         if ((i != 0) && !(fmp->options & OPTIONS_NODELIM))  
             fprintf (xcsv_file.xcsvfp, write_delimiter);